/**
 * 
 */
package lu.peersoft.timesheet
import java.text.*



/**
 * @author thor
 *
 */
public class FormatCategory{
    public static String format(final Number self, String format) {
        new DecimalFormat(format).format(self)
    }

    public static String format(final Date self, String format) {
        new SimpleDateFormat(format).format(self)
    }

    public static String format(final Calendar self, String format) {
        new SimpleDateFormat(format).format(self.time)
    }

    public static Date parseDate(final String self, String format) {
      new SimpleDateFormat(format).parse(self)
    }
}
